<template>
	<div>
		<div class="position">
				<div class="box">
					<div class="status-box">
						<van-icon name="manager-o" size="3rem"/>
						<van-button type="primary" to="/layout/wteacher" class="round" color="#00669a" @click="btn1">我是教职工</van-button>
					</div>
					<div class="status-box">
						<van-icon name="contact"  size="3rem"/>
						<van-button type="primary" to="/layout/work" class="round" color="#00669a" @click="btn2">我是学生</van-button>
					</div>
				</div>
		</div>
	</div>
</template>

<script>
	export default {
		methods: {
			btn1() {
				this.$store.commit('updateId', 1)
				console.log('按钮'+1);
			},
			btn2() {
				this.$store.commit('updateId', 2)
								console.log('按钮'+2);
			},
		},
	}
</script>

<style lang="less" scoped>
	.box {
		margin-top: 50%;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.status-box {
		width: 40%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}
	
	.round {
		border-radius: 10px;
	}
</style>